/** 
 * 对数据进行加密
 */
var userName = process.argv[2];
var pwd = process.argv[3];
var str = "userName: " + userName + " pwd: " + pwd + "\n";
console.log(str);
var buf1 = Buffer.from(str); //默认utf-8
var str1 = buf1.toString("base64"); //?向字符转换时，使用加密
console.log(str1);